package model;

import java.util.Date;

/**
 *
 * @author BACQ Justine et SACRE Sauvane
 */
public class Animal {

    private String idAnimal, nomAnimal;
    private double poids;
    private Date dateNaisPresume;
    private Race raceAnimal;

    public Animal(String id, String nom, double poids, Date dateNais, Race raceAnimal) {
        idAnimal = id;
        nomAnimal = nom;
        this.poids = poids;
        dateNaisPresume = dateNais;
        this.raceAnimal = raceAnimal;
    }

    public Animal(String id, String nom) {
        idAnimal = id;
        nomAnimal = nom;
    }

    public Animal(String id) {
        idAnimal = id;
    }

    //getteur
    public String getIdAnimal() {
        return idAnimal;
    }

    public String getNomAnimal() {
        return nomAnimal;
    }

    public double getPoids() {
        return poids;
    }

    public Date getDateNaisPresume() {
        return dateNaisPresume;
    }

    public Race getRaceAnimal() {
        return raceAnimal;
    }

    public String getNomIdAnimal() {
        return nomAnimal + " ( " + idAnimal + " )";
    }

    //setteur
    public void setIdAnimal(String idAnimal) {
        this.idAnimal = idAnimal;
    }

    public void setNomAnimal(String nomAnimal) {
        this.nomAnimal = nomAnimal;
    }

    public void setPoids(double poids) {
        this.poids = poids;
    }

    public void setDateNaisPresume(Date dateNaisPresume) {
        this.dateNaisPresume = dateNaisPresume;
    }

    public void setRaceAnimal(Race raceAnimal) {
        this.raceAnimal = raceAnimal;
    }
}
